package com.dbz.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.dbz.entity.Product;
import com.dbz.entity.ShenPi;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ShenPiService {


    public IPage<ShenPi> selectPage(IPage<ShenPi> page, @Param(Constants.WRAPPER) Wrapper<ShenPi> queryMapper);
    /**
     * 批量插入
     * @param list
     * @return
     */
    public int insertshenpi(List<Object> list);

    /**
     * 查询近两天同意的审批
     * @return
     */
    public List<ShenPi>shenpilistdt();

    /**
     * 同意审批
     * @param
     * @param
     * @return
     */
    public int updateshenpi(String sidp,String userName);

    /**
     * 不同意审批
     * @param
     * @param
     * @return
     */
    public int noupdateshenpi(String spid,String userName);
}
